package com.example.idie.service;

import com.example.idie.bean.Response;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface FileUploadService {
    // 单文件上传
    Response<String> uploadSingleFile(MultipartFile file) throws Exception;

    // 批量文件上传
    Response<String> uploadFiles(MultipartFile[] files);

    Response<String> download(String filename, HttpServletResponse response) throws IOException;

}
